package com.viphuli.util;

import com.viphuli.app.R;
import com.viphuli.common.MyApp;

public class CommonUtils {

	public static String convertPrice(int price) {
		String unit = MyApp.getInstance().getString(R.string.str_service_price_unit);

		int b = price / 100;
		int c = price % 100;

		StringBuffer sb = new StringBuffer();
		sb.append(b);
		sb.append(".");
		sb.append(c);
		sb.append(c == 0 ? "0" : "");

		return unit + sb;
	}

}
